import request from "@/api/request.js";

export function login(data) {
    return request({
        url: '/api/auth/login',
        method: 'post',
        data
    })
}

export function logoutApi() {
    return  request({
        url: '/api/auth/logout',
        method: 'post'
    })
}

export function getUserInfo(data) {
    return Promise.resolve({code: 200, data: {username: "admin", id: 1}})
}

export function sendResetCode(data) {
    return Promise.resolve({code: 200, data: {username: "admin", id: 1}})
}

export function resetPassword(data) {
    return Promise.resolve({code: 200, data: {username: "admin", id: 1}})
}
